/**
 * 
 */
package com.ld.tamp.web.bean;

import java.io.Serializable;
import java.util.List;

import weixin.popular.bean.component.ApiQueryAuthResult.Authorization_info;
import weixin.popular.bean.component.FuncInfo;

/**
 * @author KeYang
 *
 */
public class AuthorizerInfo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String authorizer_appid;

	private String authorizer_access_token;

	private Long expires_time;

	private String authorizer_refresh_token;
	
	private List<FuncInfo> func_info;
	
	public AuthorizerInfo(){
		
	}
	
	/**
	 * @param authorizationInfo
	 */
	public AuthorizerInfo(Authorization_info authorizationInfo) {
		super();
		this.authorizer_appid = authorizationInfo.getAuthorizer_appid();
		this.authorizer_refresh_token = authorizationInfo.getAuthorizer_refresh_token();
		this.authorizer_access_token = authorizationInfo.getAuthorizer_access_token();
		this.func_info = authorizationInfo.getFunc_info();
		this.expires_time = authorizationInfo.getExpires_in()*1000 + System.currentTimeMillis();
	}

	public String getAuthorizer_appid() {
		return authorizer_appid;
	}

	public void setAuthorizer_appid(String authorizer_appid) {
		this.authorizer_appid = authorizer_appid;
	}

	public String getAuthorizer_access_token() {
		return authorizer_access_token;
	}

	public void setAuthorizer_access_token(String authorizer_access_token) {
		this.authorizer_access_token = authorizer_access_token;
	}

	public Long getExpires_time() {
		return expires_time;
	}

	public void setExpires_time(Long expires_time) {
		this.expires_time = expires_time;
	}

	public String getAuthorizer_refresh_token() {
		return authorizer_refresh_token;
	}

	public void setAuthorizer_refresh_token(String authorizer_refresh_token) {
		this.authorizer_refresh_token = authorizer_refresh_token;
	}

	public List<FuncInfo> getFunc_info() {
		return func_info;
	}

	public void setFunc_info(List<FuncInfo> func_info) {
		this.func_info = func_info;
	}
	
	
}

